Repository navigation
The assistant qualification set covers every Loom use case, with help cases scored by the server's citation rule - #513
Merged
Merged
Conversation
zlareb1
force-pushed
the
feat/assistant-help-coverage
branch
2 times, most recently
from
November 11, 2026 02:31
86a9955 to
6cc2651
Compare
… cases scored by the server's citation rule Each case names its use case; help cases list the values the answer must state and the pages holding them. qualify.py checks a help citation as the server does, accepts an earlier version of a memory key, scores unknown_names, and reports per use case. The LibreChat page carries the before and after table. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…es the unscored direct path out of its totals A help breadcrumb keeps its case, as the server's section_path does. The summary counts a help abstention with the abstentions; the direct path of a question the docs leave open is not scored. Use cases are listed in number order, with the guide's labels. Tests cover the help citation check, the memory-citation filters, help abstention and unknown-name scoring, and the report. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
… abstention is read with the documentation patterns namespace.inventory always returns four populations, so the direct path now reads the agents' total. Every help case reads abstention with the documentation phrases. The tracker case no longer accepts a bare 'live'. The guide's column says what it counts (no invalid citation) and names the 14 re-probed cases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…e docs say rescore scores with score_answer and takes the cases' current use-case labels. A history read that is rate-limited waits instead of marking a citation invalid. The setting and quickstart labels need the page's own words; a question the docs leave open forbids telling the person to set a setting, not naming one to deny it. The history case's direct path reads the key's versions. Rescored, the before run answers 9 of 26 help questions, not 10. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…p citation in a document answer is checked only as help Each help case carries samples; a test scores each label against them, and the labels that passed a wrong answer or restated the question now need what the page states. The document citation parse no longer reads [help:] citations as documents. The guide's figures follow: before 8 of 26, after 53 of 56 with no invalid citation, and the doc-cache-entries miss is described as it happened. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…he cost-cap and no-docs labels catch near misses The before column describes a build the tree does not have, so it moves to the PR; the guide names the agent definitions the runs used. The cost cap needs 1.0, not 1.50; the no-docs case forbids any suggested setting. A help citation whose section is only separators cites the page, as the server reads it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
… rescore reads the saved run's path The role, no-docs and erasure forbids catch the wrong claim, not a denial of it, with right samples that deny it; the docs-abstention phrases cover 'no setting' and 'don't list'. A run saves whether it went through the bridge, and rescore reads memory citations by that. The guide's storage table is restored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…reached by a wrong sample, and bridge citations are read whole An answer to the question the docs leave open is correct when it abstains and writes no LOOM_ name a docs page lacks, the docs half of the server's unknown-name check, in place of verb patterns; the bridge's unknown names count for it too. Each help forbid has a wrong sample that passes the label and fails only on it. Through the bridge a memory citation is parsed in the server's form, and memory citations are not read as documents. Rescore needs the saved run's path. The upgrade label ties booting to applying the migrations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
… and the op-naming help cases fail a wrong claim about their op check_citations takes history_ok from the case's cite_history; elsewhere an earlier version is stale again, as the guide says. Six help cases gain a wrong sample that names the op and denies it, with a forbid that fails it. Code citations are not read as documents; the documented settings skip development/, as the help index does; the history and get reads share one body. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…coring bullets match the scorer The upgrade, cost-cap, setting and no-docs labels pass the docs' own and paraphrased wording, each held by a right sample; the history and erasure forbids fail only the wrong claim. The connected-agents case is a namespace-inventory question (U3). The guide states the unknown-name rule for every case and the bridge's memory citation form. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
… and the no-docs and tracker labels read more of the docs' answer Their forbids failed right answers that contrasted the wrong op or added a caveat; the expected op and role decide those cases now, and the guide says a label shows the answer has what the page says. The docs-abstention phrases read 'doesn't have a setting' and 'there is no ... setting' but not a how-to's 'no other setting'. The tracker label reads 'doesn't store' and 'queries it live'. The revoke-token sample uses the CLI's --jti. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…ays of saying the docs' answer "You don't need an API key", "migrations run automatically at boot", a setting answer without its timing, and "the dashboard has no theme setting" now score correct, each held by a right sample. The documented settings are read as UTF-8, as the help index reads them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
… docs' other wordings, and the guide says labels err both ways The labels accept the sharing page's definition of a collection, the SDK forms of task and run calls, 'organization admin' and 'reads your tracker live'; the graph forbid fails only a claim that entities are not extracted. The guide says a right answer worded otherwise can fail, and the use-case report's unknown-name column has a test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…es its 28-case table, and native-only takes the use-case labels A full run spends about $3, mostly from acme-handbook's cap; the 28-case table is the data cases it measures. The upgrade and assistant-health labels pass their pages' own wording. --native-only sets each row's use case from cases.json, as rescore does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
… a documented settings family counts as documented A test pins MEMORY_CITE_RE, CODE_CITE_RE and HELP_CITE_RE to the server's patterns, and one covers an earlier version cited through the bridge in a history case. A LOOM_ family the docs write with a placeholder documents its members. The deployed-assistant table names the 28 data cases it measured. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…and a help citation help.get would refuse is marked, not fatal LOOM_RETENTION_<TABLE>_DAYS takes LOOM_RETENTION_EVENTS_DAYS, not LOOM_RETENTION_THEME; the docs are read once for both settings checks. An empty or over-long help path is no such page without a call. The working-memory, quickstart, revoke-token, setting and models-keys labels fail a denial of the documented answer, each held by a wrong sample. A test holds every case to a use case and every cited page to a file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…h, and three help labels take their pages' own wording Erasure of a user_id reaches every table and namespace of the org, and purge=true deletes; memory.clear tombstones one namespace's memories. The add-repo label takes the operator path (LOOM_CODE_REPOS_JSON, loom code backfill), the setting label 'the definition's model', and the quickstart label fails a claim that it needs a key. The deployed-assistant table header names its 28 cases plainly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…stions, and the no-docs direct path stays unscored on a failed read
The setup agent's instructions name the help tools and the [help:] form. A non-200 help.search on the no-docs question is not scored. The collection and upgrade labels take their pages' wording ('a grant on one', 'applies pending files'); a cited help page under development/ fails the case test; the guide's 14-case table and no-docs rule state what the code checks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…d the direct agent abstains in the docs scorer's words The forbid test checks each pattern; patterns no wrong sample needs are removed. The setup agent names help.search and help.get and, for a question about Loom, says the documentation does not cover it. The revoke-token label takes the dashboard path. A test reads the bridge's loom.citations event through ask_assistant. The guide's edited paragraphs are rewrapped, and its deployed-assistant table keeps its header, with the measured cases named above it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
… direct agent names the help tools as MCP lists them The quickstart forbid takes either word order of a run that needs a key; the setup agent's instructions say help_search and help_get, rewrapped to the file's width. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
The quickstart forbid takes 'without the/your key'; the graph forbid takes 'never extracts'. Each has a wrong sample in that wording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…nd op cases fail a denial of what the page says help-quickstart requires 'needs no API key' or 'doesn't need an API key', so a 'cannot … without a key' answer fails whatever its verb; its forbids are no longer needed. Working memory fails 'expires after'; history, upload, extraction, add-repo and tasks fail 'there is no <op>'. Each new rule has a wrong sample only it fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…lp direct path counts its expected page, and the erasure sentence says what it reaches The tracker label ties 'doesn't copy' to the data and the health label to a failed setup, each with the wrong answer that passed. The help direct path's cited_expected is its top hit, so the summary compares like with like. A user_id erasure erases the user's rows in every namespace, with what it leaves listed below; the guide's memory-citation rule names the help strip. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…p path guard measures the path as written Quickstart needs 'no API key is needed'; tracker fails 'yes … copies'; assistant health needs a failed setup, not any 'retry'; upgrade's 'before' is 'before it reports ready'; erase-user fails a denial of erasure.request. Each has the passing answer as a wrong sample. The 300-character guard reads the cited path before the docs/ strip, as help.get validates it, and native_score sets cited_expected where the direct path can cite. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
… help.get gets the cited path as written The tracker label needs the tracker's data not copied and fails a yes-then-copy, import, sync or mirror claim; the quickstart label needs the quickstart, you or it as the one needing no key. help.get strips docs/ itself, once, as the bridge does, so the harness sends the path unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Upgrade, cost cap, setting, search vs ask, key shape, conflicts, collections, Claude Code, assistant health, ranking and Langfuse each gain a forbid on the denial of their page's claim, with a wrong sample that states the labeled values and only that forbid fails. The ranking label no longer takes search_trace, which scores the vector leg alone. The tracker forbid takes 'copies your …' but not 'does not copy your …'. The documented-settings docstring says how it differs from the server's rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…iled direct read cites no labeled source SETTING_RE reads whole names only, so LOOM_RETENTION_* documents its members and not LOOM_RETENTION; a family may be written with <PLACEHOLDER> or *. A failed direct read sets cited_expected False for a case that labels a source. The guide says a help answer is wrong when it denies the labeled values. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…ent-report test checks the current summary label help.get answers found:false to an empty path after the docs/ strip, so only a path past 300 characters (a 422) is marked without a call; its test uses one. The document-report assertion names 'expected source cited'. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…e too, and memory.clear is described by what it clears A failed read counts a labeled source as not cited only where the direct path could cite it (memory.search, help.search); data-history is left out either way. The erasure paragraph says memory.clear tombstones one agent's or user's memories in one namespace. The help citation check uses the cited path for both the length guard and help.get, and strips docs/ only at the page comparison. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…ad of marking the key invalid memory.get goes through scorer_read like every other scorer read: found:false marks the key invalid, and a read that fails says nothing about the answer. A settings family's * placeholder follows an underscore, so Markdown bold around a name is not one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…olds every help case with a claim to a forbid help-quickstart was the only help case with a claim and no forbid; it now fails 'Yes: … requires an API key', with that answer as its wrong sample. A parametrized test requires a forbid on every help case except the question the docs leave open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…t forbid spares the page's own allowlist line HELP_ABSTAIN_PATTERNS takes 'Nothing stored in Loom', which agent.yaml ends an abstention with after its three searches. The conflict forbid fails a denial that the write is flagged, not the page's 'a pair on the allowlist is not flagged'; both have right samples. The 14-case sentence names data cases, and a duplicated comment is cut. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
An answer that quotes its cited page must never trip the case's forbid; the test reads each cited page against each pattern. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…a failure, and the guide counts the uncited answers by kind A fail word inside assistant_service_failing satisfied the label; the failure must now be its own word, with wrong samples that write the name. The twelve answers with no memory, document or help citation are two refusals, three abstentions, three SQL analyses (which cite their statement) and four counts; the mentor.guide miss is the harness marking the page invalid. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
No expected pattern may match the question's text, so an answer that only repeats a name the question gives (a setting, a health problem) states nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…answer, and the first table's 14 cases are named help.get and help.search answer available:false on a server with no docs; the harness stops there, as the bridge reports the check as not run, rather than mark every help citation invalid and every direct path wrong. The guide names the two memory abstentions among the 14 cases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…and the assistant-health label takes the architecture page's wording require_docs asks help.search once and stops on available:false, so no answer is paid for and then discarded. The health label accepts LibreChat refusing the sign-in and a sealed value neither secret opens, as architecture/assistant.md words the failures. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Any answer may cite a help page, so the docs check runs before a run of any cases, and native-only calls it too; baseline no longer repeats it. use_case is read directly where every case carries one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
require_docs goes through scorer_read with the scorer token, so a revoked first person or a failed read stops the run instead of letting a no-docs run go on; it sends only help.search's own fields. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…key, and two test names match what they hold Outside the assistant route any key-shaped text is a memory citation, so a help answer quoting the docs' example key counts it invalid there; the help figures come from the assistant route. The docs-probe test is named for every run, and a comment says 'straight through LibreChat' rather than 'direct path'. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Through LibreChat the help tools are loom_help_search_mcp_loom and loom_help_get_mcp_loom, as agent.yaml says of every Loom tool; the setup instructions now use those names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
zlareb1
force-pushed
the
feat/assistant-help-coverage
branch
from
November 11, 2026 05:34
bbf0e37 to
80a861f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #488
Related: #498
Related: #509
Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
The assistant's qualification covers every use case of Loom, its data and how Loom works, with at least one question each. It scores help answers by what they state, by the
[help:]citations Loom checks, and by any invented op or setting name. The measured pass rates per use case are in the LibreChat guide.Why
#488, #498 and #509 let the assistant answer questions about Loom itself. The qualification asked only about data, so nothing showed whether those answers hold. This PR extends the case set and the harness to every use case, records what a run measured, and fixes the one docs page a wrong answer traced back to.
Scope and risk
integrations/librechat/qualification/cases.jsongains:use_caselabel on every case;memory.history) and the agents' count (namespace.inventory).qualify.py:[help:]and checks it withhelp.get, by the server's section rule: the breadcrumb, without the page title, or a unique tail, each heading trimmed and compared with its case;help.searchbaseline, which finds the labeled page; it is not scored for the question the docs leave open, since a word search finds some page for any question;help_abstainkind;unknown_namesandsupport, and counts any unknown name as a wrong answer;setup): its instructions now name the help tools as LibreChat lists them (loom_help_search_mcp_loom,loom_help_get_mcp_loom), the[help:]citation form, and how to say the docs do not cover a question; the measured figures come from the bridge path, whose agent isagent.yaml.runandrun --native-onlyfirst askhelp.searchwith the scorer's token and stop when the server ships no docs (available: false) or the probe cannot read;check_help_citationsstops the same way onhelp.get. A help citation cannot be checked then, and any answer may cite one, so no answer is paid for and then scored against a missing index.[help:features/memory/writing.md]) is no longer read as a memory key.[memory:]citations count as memory citations, so a key-shaped example quoted from the docs is not read as one. In a case about a key's history (cite_history), a cited earlier version counts as valid when the key's history holds it; anywhere else it is stale. Code citations, like help and memory ones, are not read as documents.docs/features/memory/retention-and-erasure.mdnow says which op erases a user across the org (an org admin'serasure.requestwith theuser_idscope), which erases the user's rows in every namespace of the org, and thatmemory.cleartombstones one namespace's memories only, linking the section that says so. An answer had readmemory.clearas an org-wide erasure.docs/features/integrations/librechat.md#use-caseshas the method, the per-use-case table, how the agent definitions these runs used differ fromagent.yaml, and the misses. The before figures stay in this description: they describe a build the tree no longer has.server/operations/reach_manifest.py. The harness never runs in CI and spends model money only when an operator runs it.Compatibility, rollout and rollback
Tests
tests/unit/test_librechat_integration.py:find_sectionverdict on the same page, case and spacing included;make format lint typecheck; and, on the head rebased onto main,tests/unit/test_librechat_integration.py,test_op_reach_census.py,test_help_docs.py,test_assistant_help_citations.py,test_doc_links.pyandtest_public_copy.py, all passing. The harness tests cover the help section rule against the server's, help citations (also inside a document answer), the memory-citation filters, abstention and unknown-name scoring,rescore(including which path a saved run took), the report, every help label against its samples and every forbid pattern against a wrong sample that only it fails, the no-docs case against the settings the docs write, bridge memory citations in the server's form, and that the history and connected-agents direct paths fail on the wrong data.make formatran its Python, JavaScript and Markdown steps; its TOML step fails on a symlink loop in this machine's virtualenv, and the diff changes no TOML file. The full unit suite on the first head: 33164 passed; one test fails,test_deeply_nested_hidden_html_parses_in_bounded_time, the same way onmainin this environment and outside this diff.help-settinganswer said nothing stored answers it but matched the setting's own name, and itshelp-working-memoryanswer describedrecent_messagesbut matched "not expire". Every help case now carries right and wrong sample answers, and a test holds each label to them.doc-cache-entries) cited a help page that the harness had also read as a document citation and marked invalid; the bridge verified it. The harness now checks a help citation only as help, so its no-invalid-citation count is 53 of 56, the bridge's own count.loom.citationsevent, so the figures below hold under the exact rule.qualify.py setup-bridge):claude-haiku-4-5, fake embeddings and LLM for Loom's own model jobs.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (an agent wrote most of the diff): Claude Code. The cases' labels were checked against the docs pages they cite, and every reported number comes from a recorded run.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make format-check,make lint,make typecheckandmake test-unitpass; the integration suite passes if server behaviour changed. (The full unit suite ran on the first head; later heads change only the harness, its cases, its tests and two docs pages, and ran the affected tests. See Tests.)docs/reference/configuration.mdand thedocs/reference/tables (python scripts/codegen/docs_reference.py), the reach manifest,schemas/schema.sql(make schema-dump) and the Codex plugin copies (python3 scripts/codegen/agent_plugin_sync.py).main; no merged migration is edited.hooks/,lib/,bin/,skills/,.mcp.json, the Codexplugin-defaults.json) bumps both plugin manifests' version, and no other open PR uses that version.npm --prefix frontend run build) and its tests pass, iffrontend/changed.docs/describe the system as it now is, and this description names any operator steps and wire changes.tests/unit/test_public_copy.py).git commit -s), as CONTRIBUTING.md asks.🤖 Generated with Claude Code